package com.example.mbl.service;

import com.example.mbl.entity.Book;
import com.example.mbl.result.PageResult;
import com.example.mbl.result.WebRestResult;
import com.example.mbl.result.business.BookPageResult;

import java.util.List;

public interface BookService {
    List<Book> searchItemsByKeyWord(String keyword);
    WebRestResult addBook(Book book);
    WebRestResult deleteBook(Book book);
    WebRestResult updateBook(Book book);
    WebRestResult setBookVisible(Book book);
    PageResult<BookPageResult> getBookList(String bookname,String publishdate,int page,int pagesize);
}
